import axiosData from "@/api/axios";

export default {
  /**
   * @description: 获取维修记录管理列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/equipment-hitch/v1/hitchApplyAudit/queryPageList", params);
  },
  /**
   * @description: 新增维修记录管理
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairTask/addMapper", params);
  },
  /**
   * @description: 编辑维修记录管理
   * @param {Object} params *
   * @return {Object}
   */
  edit(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairTask/editMapper", params);
  },
  /**
   * @description: 删除委内维修记录
   * @param {Object} params *
   * @return {Object}
   */
  delInList(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairTask/delByRepairTaskCodeListMapperIn", params);
  },
  /**
   * @description: 删除委外维修记录
   * @param {Object} params *
   * @return {Object}
   */
  delOutList(params) {
    return axiosData.post("/v3/equipment-hitch/v1/repairTask/delByRepairTaskCodeListMapperOut", params);
  }
};
